//
//  OrderNumberMoneInforTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/7.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "OrderNumberMoneInforTableViewCell.h"

@implementation OrderNumberMoneInforTableViewCell{
    GLGWLabel * leftTitlabel;
    GLGWLabel * rightTitleLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        leftTitlabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        leftTitlabel.text = @"交易流水号";
        [leftTitlabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(85)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        rightTitleLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#666666"] inSuperView:self.contentView];
        rightTitleLabel.text = @"555874113334";
        [rightTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(100));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
    }
    return self;
}

- (void)setMoneyPath:(NSIndexPath *)moneyPath
{
    if (moneyPath.section == 2) {
        switch (moneyPath.row) {
            case 0:{
                leftTitlabel.text = @"订单号";
                rightTitleLabel.text = _detailModel.orderId;
            }
                break;
            case 1:{
                leftTitlabel.text = @"下单时间";
                rightTitleLabel.text = _detailModel.createTime;
            }
                break;
                
            default:
                break;
        }
    } else {
        switch (moneyPath.row) {
            case 0:{
                leftTitlabel.text = @"付款方式";
            }
                break;
            case 1:{
                leftTitlabel.text = @"交易流水号";
            }
                break;
            case 2:{
                leftTitlabel.text = @"支付时间";
            }
                break;
                
            default:
                break;
        }
    }
}

//- (void)setDetailModel:(OrderInfomationDetailDataInfoModel *)detailModel
//{
//    _detailModel = detailModel;
//
//}
@end
